|
Расположение в меню |
---|
Arch → Axis System |
Верстаки |
Arch |
Быстрые клавиши |
Нет |
Представлено в версии |
- |
См. также |
Arch Axis, Arch Grid |
Средство Axis System позволяет объединить 2 или 3 объекта Arch Axis. Основная функция этого инструмента - рассчитать точки пересечения между различными осями, включенными в эту систему. Объекты Arch могут затем использовать эту систему для дублирования их формы в разных точках пересечения.
This is useful to define the intersection points between the different axes. Arch objects can then use this system to duplicate their shape on the different intersection points.
На приведенном выше рисунке показаны три объекта Arch Axis, объединенные в одну систему Axis. Затем объект столбца использует эту систему как свое свойство Axis, чтобы иметь форму, дублируемую в каждой точке пересечения.
См. так же: Arch API и Основы составления скриптов FreeCAD.
The AxisSystem tool can be used in macros and from the Python console by using the following function:
AxisSystem = makeAxisSystem(axes, name="Axis System")
AxisSystem
object from the given axes
, which is a single Arch Axis, or a list of them.Пример:
import Draft, Arch
Axes = Arch.makeAxis(5, 1000)
Axes.ViewObject.LineWidth = 3
Axes.ViewObject.BubbleSize = 200
Axes.ViewObject.FontSize = 150
Axes2 = Arch.makeAxis(6, 500)
Axes2.ViewObject.LineWidth = 2
Axes2.ViewObject.BubbleSize = 200
Axes2.ViewObject.FontSize = 150
Axes2.ViewObject.NumberingStyle = "A,B,C"
FreeCAD.ActiveDocument.recompute()
Axes2.Length = 6000
Draft.rotate(Axes2, -90)
Draft.move(Axes2, FreeCAD.Vector(-1000, 2500, 0))
FreeCAD.ActiveDocument.recompute()
AxisSystem = Arch.makeAxisSystem([Axes, Axes2])
Structure = Arch.makeStructure(length=200, width=200, height=100)
Draft.move(Structure, FreeCAD.Vector(-100, 0, 0))
Structure.Axis = AxisSystem
FreeCAD.ActiveDocument.recompute()